import request from '@/utils/request'
// 用户登录接口
export const login = (data) => {
  return request.post('/user/login', data)
}
// 用户注册接口
export const register = (data) => {
  return request.post('/user/registered', data)
}
// 获取用户信息
export const getUserInfo = () => {
  return request.get('/user')
}
